package com.atguigu.lease.web.app.custom.config;

import com.atguigu.lease.common.constant.RabbitConstant;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.amqp.core.Queue;

@Configuration
public class RabbitConfiguration {

    @Bean("smsQueue")
    public Queue smsQueue(){
        return QueueBuilder
                .durable(RabbitConstant.APP_SMS_QUEUE)
                .build();
    }
}
